package com.rpc.dubbo.publicServiceImpl;


import com.rpc.dubbo.publicService.HelloService;

/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc
 */
public class HelloServiceImpl implements HelloService {
  @Override
  public String hello(String message) {
    System.out.println("收到客户端消息=" + message);
    //根据 message 返回不同的结果
    if(message != null) {
      return "你好客户端，我已经收到你的消息【" + message + "】";
    } else {
      return "你好客户端，我已经收到你的消息。";
    }
  }
}
